<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>ClosePreferences</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">ClosePreferences()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>ClosePreferences</b></font>()</blockquote>

<b>概要</b><br><blockquote>



Closes a preference file previously opened with <a href="openpreferences.html">OpenPreferences()</a> or created with <a href="createpreferences.html">CreatePreferences()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
无.


</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#3A3966">; Open a preference file</font>
<font color="#3A3966">  OpenPreferences</font>(<font color="#924B72">#PB_Compiler_Home</font> +"Examples\Sources\Data\test.pref")
  
  <font color="#3A3966">; Choose the group "window"</font>
<font color="#3A3966">  PreferenceGroup</font>("window")
  
  <font color="#3A3966">; Display the "w" key of this group</font>
<font color="#3A3966">  MessageRequester</font>("Info", "w = " +<font color="#3A3966"> ReadPreferenceLong </font>("w", 0))
  
  <font color="#3A3966">; Close the preference file</font>
<font color="#3A3966">  ClosePreferences</font>()
</font></pre>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="createpreferences.html">CreatePreferences()</a>, <a href="openpreferences.html">OpenPreferences()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center><a href="index.html">Preference Index</a> - <a href="createpreferences.html">CreatePreferences()</a> -&gt;<br><br>

</body></html>